package com.ruifu.pls.entity;// default package

import java.math.BigDecimal;

/**
 * DocAsnDetailsId entity. @author MyEclipse Persistence Tools
 */

public class 		DocAsnDetailsId implements java.io.Serializable {

	// Fields

	private String asnno;
	private BigDecimal asnlineno;

	// Constructors

	/** default constructor */
	public DocAsnDetailsId() {
	}

	/** full constructor */
	public DocAsnDetailsId(String asnno, BigDecimal asnlineno) {
		this.asnno = asnno;
		this.asnlineno = asnlineno;
	}

	// Property accessors

	public String getAsnno() {
		return this.asnno;
	}

	public void setAsnno(String asnno) {
		this.asnno = asnno;
	}

	public BigDecimal getAsnlineno() {
		return this.asnlineno;
	}

	public void setAsnlineno(BigDecimal asnlineno) {
		this.asnlineno = asnlineno;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof DocAsnDetailsId))
			return false;
		DocAsnDetailsId castOther = (DocAsnDetailsId) other;

		return ((this.getAsnno() == castOther.getAsnno()) || (this.getAsnno() != null
				&& castOther.getAsnno() != null && this.getAsnno().equals(
				castOther.getAsnno())))
				&& ((this.getAsnlineno() == castOther.getAsnlineno()) || (this
						.getAsnlineno() != null
						&& castOther.getAsnlineno() != null && this
						.getAsnlineno().equals(castOther.getAsnlineno())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getAsnno() == null ? 0 : this.getAsnno().hashCode());
		result = 37 * result
				+ (getAsnlineno() == null ? 0 : this.getAsnlineno().hashCode());
		return result;
	}

}